package kr.salebeans.cm.domain.customer;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class ContactPoint {

    /** 010, 011, 016, 017, 018, 019 */
    @Column(name = "CELL_PH_NO1", length = 5)
    private String cellPhoneNumber1;

    @Column(name = "CELL_PH_NO2", length = 5)
    private String cellPhoneNumber2;

    @Column(name = "CELL_PH_NO3", length = 5)
    private String cellPhoneNumber3;

    /** 02, 031, 032 ... */
    @Column(name = "PH_NO1", length = 5)
    private String phoneNumber1;

    @Column(name = "PH_NO2", length = 5)
    private String phoneNumber2;

    @Column(name = "PH_NO3", length = 5)
    private String phoneNumber3;

    @Column(name = "EMAIL", length = 100)
    private String email;

    @Column(name = "ZIP_NO1", length = 3)
    private String zipNo1;

    @Column(name = "ZIP_NO2", length = 3)
    private String zipNo2;

    @Column(name = "BASE_ADDR", length = 100)
    private String baseAddress;

    @Column(name = "DTL_ADDR", length = 100)
    private String detailAddress;

    public ContactPoint() {
    }

    public String makeCellPhoneNo() {
        StringBuilder sb = new StringBuilder();
        sb.append(this.cellPhoneNumber1).append("-");
        sb.append(this.cellPhoneNumber2).append("-");
        sb.append(this.cellPhoneNumber3);
        return sb.toString();
    }

    public String makePhoneNo() {
        StringBuilder sb = new StringBuilder();
        sb.append(this.phoneNumber1).append("-");
        sb.append(this.phoneNumber2).append("-");
        sb.append(this.phoneNumber3);
        return sb.toString();
    }

    public String getCellPhoneNumber1() {
        return cellPhoneNumber1;
    }

    public void setCellPhoneNumber1(String cellPhoneNumber1) {
        this.cellPhoneNumber1 = cellPhoneNumber1;
    }

    public String getCellPhoneNumber2() {
        return cellPhoneNumber2;
    }

    public void setCellPhoneNumber2(String cellPhoneNumber2) {
        this.cellPhoneNumber2 = cellPhoneNumber2;
    }

    public String getCellPhoneNumber3() {
        return cellPhoneNumber3;
    }

    public void setCellPhoneNumber3(String cellPhoneNumber3) {
        this.cellPhoneNumber3 = cellPhoneNumber3;
    }

    public String getPhoneNumber1() {
        return phoneNumber1;
    }

    public void setPhoneNumber1(String phoneNumber1) {
        this.phoneNumber1 = phoneNumber1;
    }

    public String getPhoneNumber2() {
        return phoneNumber2;
    }

    public void setPhoneNumber2(String phoneNumber2) {
        this.phoneNumber2 = phoneNumber2;
    }

    public String getPhoneNumber3() {
        return phoneNumber3;
    }

    public void setPhoneNumber3(String phoneNumber3) {
        this.phoneNumber3 = phoneNumber3;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getBaseAddress() {
        return baseAddress;
    }

    public void setBaseAddress(String baseAddress) {
        this.baseAddress = baseAddress;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }

    public String getZipNo1() {
        return zipNo1;
    }

    public void setZipNo1(String zipNo1) {
        this.zipNo1 = zipNo1;
    }

    public String getZipNo2() {
        return zipNo2;
    }

    public void setZipNo2(String zipNo2) {
        this.zipNo2 = zipNo2;
    }

}
